<h2>User Information</h2>
<dl>
  <dt>Name:</dt>
  <dd><%=h @user.first_name %> <%=h @user.last_name %></dd>
  <dt>DN:</dt>
  <dd><%=h @user.dn %></dd>
  <dt>E-mail address:</dt>
  <dd><%=h @user.email %></dd>
</dl>

<div style="clear: both"></div>
<% if @current_user == @user -%>
  <h2>Notification Preferences</h2>
  <p>
    <%= check_box :user, :notify_on_new, :disabled => true %>
    <%= label :notify_on_new, 'Send notification when my projects have new issues' %><br />
    <%= check_box :user, :notify_on_update_if_subscribed, :disabled => true %>
    <%= label :notify_on_new, 'Send notification when my subscribed issues are updated' %><br />
    <%= check_box :user, :notify_on_update_if_owned, :disabled => true %>
    <%= label :notify_on_new, 'Send notification when my adopted or assigned issues are updated' %><br />
    <%= check_box :user, :notify_on_assignment, :disabled => true %>
    <%= label :notify_on_new, 'Send notification when I am assigned a new issue' %><br />
    <%= check_box :user, :notify_on_new, :disabled => true %>
    <%= label :notify_on_new, 'Send notification when isses I have assigned are disowned' %>
  </p>
  <%= link_to 'Edit', edit_user_path(@user) %> -
<% else -%>
  <h2>Projects</h2>
  <% @user.projects.each do |p| -%>
    <%= render :partial => 'shared/project_summary', :locals => { :project => p } %>
  <% end -%>
<% end -%>
<%= link_to 'Back', users_path %>
